{template 'header'}
<link href="{AJ_SKIN}/sty_qunju2.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.compare {margin:8px;}
.compare table {background:#FFFFFF;}
.compare table tr {background:#F1F7FC;text-align:center;}
.compare table td {width:120px;padding:5px;border-bottom:#AACCEE 1px solid;line-height:180%;}
.compare div {font-weight:bold;color:#FF6600;letter-spacing:2px;}
</style>
<div class="m">
	<div class="left_box">		
		<div class="pos">
		<span class="f_r">
		<form method="post" action="{$MOD[linkurl]}compare.php">
		输入信息ID <input type="text" name="itemid[]" id="newid" size="10"/>{loop $tags $k $v}<input type="hidden" name="itemid[]" id="itemid_{$v[itemid]}" value="{$v[itemid]}"/>{/loop}
		<input type="submit" value="添加至对比栏" class="btn_4" onclick="if(Dd('newid').value==''){confirm('请输入信息ID');Dd('newid').focus();return false;}"/>&nbsp;
		</form>
		</span>当前位置: <a href="{$MODULE[1][linkurl]}">首页</a> &raquo; <a href="{$MOD[linkurl]}">{$MOD[name]}</a> &raquo; 信息对比</div>
		<div class="compare">
		<table cellspacing="1">
		<tr>
		<td><div>移 除</div></td>
		{loop $tags $k $v}
		<td id="del_{$v[itemid]}_{$k}"><span class="jt" onclick="del({$v[itemid]}, {$k});">移除</span></td>
		{/loop}
		</tr>
		<tr>
		<td><div>图 片</div></td>
		{loop $tags $k $v}
		<td id="pic_{$v[itemid]}_{$k}"><a href="{$v[linkurl]}" target="_blank"><img src="{imgurl($v[thumb], 1)}" width="80" height="80" alt=""/></a></td>
		{/loop}
		</tr>
		<tr>
		<td><div>标 题</div></td>
		{loop $tags $k $v}
		<td id="title_{$v[itemid]}_{$k}"><a href="{$v[linkurl]}" target="_blank" title="{$v[title]}">{$v[stitle]}</a></td>
		{/loop}
		</tr>
		<tr>
		<td><div>价格</div></td>
		{loop $tags $k $v}
		<td id="tag_{$v[itemid]}_{$k}">{$v[price]}&nbsp;</td>
		{/loop}
		</tr>
		<tr>
		<td><div>建筑类型</div></td>
		{loop $tags $k $v}
		<td id="model_{$v[itemid]}_{$k}">{$v[buildtype]}&nbsp;</td>
		{/loop}
		</tr>
		<tr>
		<td><div>所属区域</div></td>
		{loop $tags $k $v}
		<td id="area_{$v[itemid]}_{$k}">{area_pos($v[areaid], ' ', 2)}</td>
		{/loop}
		</tr>
		<tr>
		<td><div>项目位置</div></td>
		{loop $tags $k $v}
		<td id="brand_{$v[itemid]}_{$k}">{$v[address]}&nbsp;</td>
		{/loop}
		</tr>
		<tr>
		<td><div>开盘时间</div></td>
		{loop $tags $k $v}
		<td id="date_{$v[itemid]}_{$k}">{$v[editdate]}</td>
		{/loop}
		</tr>
		<tr>
		<td><div>开发商</div></td>
		{loop $tags $k $v}
		<td id="com_{$v[itemid]}_{$k}"><a href="{$v[userurl]}" target="_blank">{$v[company]}</a></td>
		{/loop}
		</tr>
		<tr>
		<td><div>会 员</div></td>
		{loop $tags $k $v}
		<td id="vip_{$v[itemid]}_{$k}">
		{if $v[vip]} <img src="{AJ_SKIN}image/vip.gif"/> <img src="{AJ_SKIN}image/vip_{$v[vip]}.gif"/>{/if}&nbsp;
		</td>
		{/loop}
		</tr>
		<tr>
		<td><div>物业公司</div></td>
		{loop $tags $k $v}
		<td id="">{$v[lp_company]}</td>
		{/loop}
		</tr>
		<tr>
		<td><div>公交</div></td>
		{loop $tags $k $v}
		<td id="price_{$v[itemid]}_{$k}">{$v[lp_bus]}</td>
		{/loop}
		</tr>
		<tr>
		<td><div>教育</div></td>
		{loop $tags $k $v}
		<td id="min_{$v[itemid]}_{$k}"> {$v[lp_edu]}</td>
		{/loop}
		</tr>
		<tr>
		<td><div>绿化率</div></td>
		{loop $tags $k $v}
		<td id="amount_{$v[itemid]}_{$k}">{$v[lp_green]} </td>
		{/loop}
		</tr>
		<tr>
		<td><div>容积率</div></td>
		{loop $tags $k $v}
		<td id="days_{$v[itemid]}_{$k}">{$v[lp_volume]}</td>
		{/loop}
		</tr>
		<tr>
		<td><div>联 系</div></td>
		{loop $tags $k $v}
		<td id="im_{$v[itemid]}_{$k}">&nbsp;
			{if $v[username] && $AJ[im_web]}{im_web($v[username].'&mid='.$moduleid.'&itemid='.$v[itemid])}&nbsp;{/if}
			{if $v[qq] && $AJ[im_qq]}{im_qq($v[qq])}&nbsp;{/if}
			{if $v[ali] && $AJ[im_ali]}{im_ali($v[ali])}&nbsp;{/if}
			{if $v[msn] && $AJ[im_msn]}{im_msn($v[msn])}&nbsp;{/if}
			{if $v[skype] && $AJ[im_skype]}{im_skype($v[skype])}</a>&nbsp;{/if}
		</td>
		{/loop}
		</tr>
		<tr>
		<td><div>询 价</div></td>
		{loop $tags $k $v}
		<td id="inq_{$v[itemid]}_{$k}"><a href="{$MOD[linkurl]}{rewrite('inquiry.php?itemid='.$v['itemid'])}" target="_blank"><img src="{AJ_SKIN}image/inquiry.gif" title="意向登记" alt=""/></a></td>
		{/loop}
		</tr>
		<tr>
		<td><div>移 除</div></td>
		{loop $tags $k $v}
		<td id="move_{$v[itemid]}_{$k}"><span class="jt" onclick="del({$v[itemid]}, {$k});">移除</span></td>
		{/loop}
		</tr>
		</table>
		</div>
	</div>
</div>
<script type="text/javascript">
var n = {$item_nums};
function del(id, k) {
	if(n < 3) {confirm('最少需要保留两条信息');return;}
	var d = ['del','pic','title','tag','model','standard','brand','date','com','vip','area','price','min','amount','days','im','inq','move'];
	var l = d.length;
	for(var i=0;i<l;i++){
		Dd(d[i]+'_'+id+'_'+k).style.display='none';
	}
	Dd('itemid_'+id).value=0;
	n--;
}
</script>
{template 'footer'}